// miniprogram/pages/test/test.js
Page({
  data:{
    msg:'惊喜不惊喜',
    list:[
      {name:'stu1',score:{miniapp:80,linux:75,php:85}},
      {name:'stu2',score:{miniapp:70,linux:65,php:75}},
      {name:'stu3',score:{miniapp:60,linux:55,php:65}},
      {name:'stu4',score:{miniapp:50,linux:45,php:55}},
      {name:'stu5',score:{miniapp:40,linux:35,php:45}},
      {name:'stu6',score:{miniapp:30,linux:25,php:35}},
    ]
  },
  click(e){
    console.log(e)
    const id=e.currentTarget.dataset.id
    const str=this.data.list[id].name+"linuxs:"+this.data.list[id].score.linux 
    wx.showToast({
      title: str,
    })
  }
})